package com.ruoyi.walmart.service.shipments;

import com.ruoyi.walmart.domain.auth.ShopAuth;
import com.ruoyi.walmart.domain.shipments.InboundShipment;
import com.ruoyi.walmart.domain.shipments.ShipmentItem;
import com.ruoyi.walmart.dto.ShipmentItemDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShipmentItemService {

    /**
     * 查询所以的数据
     * @return
     */
    List<ShipmentItem> selectAllList(ShipmentItem shipmentItem);

    /**
     * 从平台抓取数据存储到数据库里面
     * @param shipmentItemList
     * @return
     */
    int shipmentItemInsertList(List<ShipmentItem> shipmentItemList);

    /**
     * 删除
     * @return
     */
    int deleteShipmentItemByAuthId(Long authId);
    /**
     * shipmentId获取发货信息
     * @return
     */
    int getShipmentItemByShipmentId(String shipmentId, ShopAuth shopAuth, InboundShipment stockId);
    /**
     * 更新货运数量
     * @param shipmentItem
     * @return
     */
    int updatedShipmentQty(ShipmentItem shipmentItem);
    /**
     * 货件明细
     * @param shipmentItem
     * @return
     */
    List<ShipmentItemDTO> getShipmentItemDTO(ShipmentItemDTO shipmentItem);
    /**
     * 修改货件明细发货数0
     * @param shipmentId
     * @return
     */
    int updateShipmentItemQty(String shipmentId);
    /**
     * 根据shipmentId列表删除ShipmentItems
     * @param existingShipmentIds
     * @return
     */
    void deleteShipmentItemsByShipmentIds(List<String> existingShipmentIds);
    /**
     * shipmentId获取发货信息
     * @return
     */
    int updateShipmentStockReceivedQty(Long authId);
}
